package com.info.zhiduoduo.repository.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商务经理表
 * </p>
 *
 * @author bob
 * @since 2019-07-23
 */
@Data
@Accessors(chain = true)
@TableName("zdd_business_manager")
public class BusinessManager extends Model<BusinessManager> {

    private static final long serialVersionUID = 1L;

    /**
     * 商务经理ID
     */
    @TableId(value = "business_manager_id", type = IdType.AUTO)
    private Integer businessManagerId;
    /**
     * 商务经理
     */
    @TableField("business_manager")
    private String businessManager;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 电话
     */
    private String phone;
    /**
     * 1:正常 2:失效
     */
    private Integer state;
    /**
     * 0:正常 1:已删除
     */
    @TableLogic
    private Integer deleted;
    private Date createtime;
    /**
     * 跟单员
     */
    private Integer merchandiser;

    @Override
    protected Serializable pkVal() {
        return this.businessManagerId;
    }

}
